-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for I2C Realtime Clocks #400
Conversation
…on to support additional clocks, including NTP servers (in theory)
…nter is fine with). Re-order methods inside the RealtimeClock class
…ting the time. Move some code around, add a __str__ function to the clock class so we can print the time with print(clock). Add some supporting data structures to get the name of the weekday or month. Validate the datetime tuple before setting the clock.
…lasses, add enum-like constants for their integer equivalents. Remove subseconds from the null clock. Remove references to local time offsets from docstrings
… then shift the datetime fields over it to reduce seed collisions
…ngs organized. Tweak the seeds to further reduce collisions
…goWonk a little bit
…in the current month & year, is_leap_year flag. Static methods renamed. Fix a bug in the wonk generation that could result in out-of-bounds errors
…y update time, or for midnight; otherwise use UTC
…nces of synchronization between them
…y're the same negative length adjustment they won't be wholly synchronized
…) with randomness
…ns and only 1 special phase per cycle. Fix a bug where we accidentally swapped waning for waxing in the phase calculations
This is a big one. Very impressive! 🙇 I'm still waiting for my RTC module and I'm hoping to give it a test run soon. Thanks! |
i have two installed here, works like a charm. have a script done already that i'll upload soon... |
That's great! I'm glad it's working for people who aren't me.
I'm planning on merging this feature into |
Add a new experimental module to add realtime clock support. Currently testing with a DS3231 module, though the DS1307 should also be compatible.
I'll add an additional contrib script or two that actually make use of this feature before marking this as ready for review. Likely something inspired by Pet Rock and/or Almanac, as both of those make good use of RTC capabilities.